// 引包
var mongoose = require("mongoose");
var db = require("./db");
var ObjectID = require("mongodb").ObjectID;

// 创建了一个 Schema 结构
var scoreSchema = new mongoose.Schema({
    playerId: {type: String, reuire: true},  // 学号
    playerName: {type: String, reuire: true},  // 姓名
    trackEvent: {type: String, reuire: true},  // 径赛项目编号
    fieldEvent: {type: String, reuire: true},  // 田赛项目编号
    score: String,  // 成绩
});

var scoreModel = db.model("Score", scoreSchema);
module.exports = scoreModel;
